<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AgriShare - 农业知识论坛</title>
    <link rel="stylesheet" href="css/style.css">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar">
        <div class="nav-container">
            <div class="nav-logo">
                <i class="fas fa-seedling"></i>
                <span>AgriShare</span>
            </div>
            <ul class="nav-menu">
                <li><a href="#home" class="nav-link">首页</a></li>
                <li><a href="#categories" class="nav-link">分类</a></li>
                <li><a href="#experts" class="nav-link">专家</a></li>
                <li><a href="#about" class="nav-link">关于</a></li>
            </ul>
            <div class="nav-auth">
                <a href="login.html" class="btn-login">登录</a>
                <a href="register.html" class="btn-register">注册</a>
            </div>
            <div class="hamburger">
                <span></span>
                <span></span>
                <span></span>
            </div>
        </div>
    </nav>

    <!-- 英雄区域 -->
    <section class="hero" id="home">
        <div class="hero-content">
            <h1>欢迎来到AgriShare</h1>
            <p>分享农业知识，共建绿色未来</p>
            <div class="hero-buttons">
                <a href="posts.html" class="btn-primary">浏览帖子</a>
                <a href="#categories" class="btn-secondary">探索分类</a>
            </div>
        </div>
        <div class="hero-image">
            <i class="fas fa-tractor"></i>
        </div>
    </section>

    <!-- 特色分类 -->
    <section class="categories" id="categories">
        <div class="container">
            <h2>热门分类</h2>
            <div class="category-grid">
                <div class="category-card">
                    <i class="fas fa-wheat-awn"></i>
                    <h3>种植技术</h3>
                    <p>分享各种作物的种植经验和技巧</p>
                </div>
                <div class="category-card">
                    <i class="fas fa-cow"></i>
                    <h3>畜牧养殖</h3>
                    <p>畜牧业养殖技术和管理经验</p>
                </div>
                <div class="category-card">
                    <i class="fas fa-bug"></i>
                    <h3>病虫害防治</h3>
                    <p>农作物病虫害识别与防治方法</p>
                </div>
                <div class="category-card">
                    <i class="fas fa-flask"></i>
                    <h3>农业科技</h3>
                    <p>现代农业技术和创新应用</p>
                </div>
            </div>
        </div>
    </section>

    <!-- 最新帖子 -->
    <section class="latest-posts">
        <div class="container">
            <h2>最新帖子</h2>
            <div class="posts-grid">
                <div class="post-card">
                    <div class="post-header">
                        <div class="post-author">
                            <img src="https://via.placeholder.com/40" alt="用户头像">
                            <span>农业专家张三</span>
                        </div>
                        <span class="post-time">2小时前</span>
                    </div>
                    <h3>春季小麦种植注意事项</h3>
                    <p>春季是小麦种植的关键时期，需要注意土壤准备、种子选择、播种时间等多个方面...</p>
                    <div class="post-stats">
                        <span><i class="fas fa-eye"></i> 128</span>
                        <span><i class="fas fa-heart"></i> 24</span>
                        <span><i class="fas fa-comment"></i> 8</span>
                    </div>
                </div>
                <div class="post-card">
                    <div class="post-header">
                        <div class="post-author">
                            <img src="https://via.placeholder.com/40" alt="用户头像">
                            <span>养殖户李四</span>
                        </div>
                        <span class="post-time">5小时前</span>
                    </div>
                    <h3>生猪养殖疫病预防指南</h3>
                    <p>生猪养殖中疫病预防是关键，本文详细介绍了常见疫病的预防措施和处理方法...</p>
                    <div class="post-stats">
                        <span><i class="fas fa-eye"></i> 95</span>
                        <span><i class="fas fa-heart"></i> 18</span>
                        <span><i class="fas fa-comment"></i> 12</span>
                    </div>
                </div>
                <div class="post-card">
                    <div class="post-header">
                        <div class="post-author">
                            <img src="https://via.placeholder.com/40" alt="用户头像">
                            <span>科技达人王五</span>
                        </div>
                        <span class="post-time">1天前</span>
                    </div>
                    <h3>智能农业设备应用实践</h3>
                    <p>介绍最新的智能农业设备在实际生产中的应用效果和使用心得...</p>
                    <div class="post-stats">
                        <span><i class="fas fa-eye"></i> 156</span>
                        <span><i class="fas fa-heart"></i> 32</span>
                        <span><i class="fas fa-comment"></i> 15</span>
                    </div>
                </div>
            </div>
            <div class="view-more">
                <a href="posts.html" class="btn-primary">查看更多帖子</a>
            </div>
        </div>
    </section>

    <!-- 页脚 -->
    <footer class="footer">
        <div class="container">
            <div class="footer-content">
                <div class="footer-section">
                    <h3>AgriShare</h3>
                    <p>致力于打造最专业的农业知识分享平台</p>
                </div>
                <div class="footer-section">
                    <h4>快速链接</h4>
                    <ul>
                        <li><a href="#">关于我们</a></li>
                        <li><a href="#">联系我们</a></li>
                        <li><a href="#">隐私政策</a></li>
                        <li><a href="#">使用条款</a></li>
                    </ul>
                </div>
                <div class="footer-section">
                    <h4>联系方式</h4>
                    <p><i class="fas fa-envelope"></i> info@agrishare.com</p>
                    <p><i class="fas fa-phone"></i> 400-123-4567</p>
                </div>
            </div>
            <div class="footer-bottom">
                <p>&copy; 2024 AgriShare. 保留所有权利。</p>
            </div>
        </div>
    </footer>

    <script src="js/main.js"></script>
</body>
</html>